<%-- 
    Document   : clearSesstion
    Created on : Oct 11, 2012, 12:16:40 AM
    Author     : ismail
--%>
<%
    HttpSession s = request.getSession(true);


    String status = request.getParameter("status");
    
    if (status.equalsIgnoreCase("clear")) {
        String type = request.getParameter("variable");
        s.setAttribute(type, "");
        s.removeAttribute(type);

    } else if (status.equalsIgnoreCase("create")) {
        String variable = request.getParameter("variable");
        String value = request.getParameter("value");
        s.setAttribute(variable, "");
        s.setAttribute(variable, value);

    } else if (status.equalsIgnoreCase("get")) {
        String variable = request.getParameter("variable");
        s.getAttribute(variable);
    }

    //boolean ff=true;
%>